package com.mspbots.sync.callback.params;

import com.mspbots.sync.callback.model.CallbackEntityType;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * com.mspbots.sync.callback.Callback
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/9/23
 */
@Data
@Builder
public class CallbackParam {

    private Integer id;
    private String url;
    @NotNull(message = "objectId not null.")
    private Integer objectId;
    @NotNull(message = "type not null.")
    private CallbackEntityType type;
    @NotEmpty(message = "level not empty.")
    private String level;

}
